import axios from 'axios';
import api from 'api/api'


//sys后台用户登录
export function login(username,password){
    let url='/profit/admin-login';
    let data={
        username:username,
        password:password
    }
    return api.post(url,data);
}


//sys后台用户登出
export function loginOut(){
    let url='/profit/admin-logout';
    return api.get(url);
}
